package cn.achao.csr.system.mapper;

import cn.achao.csr.api.model.entity.SysUserExpand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author achao
 * @description 针对表【sys_user_expand(创建用户拓展表)】的数据库操作Mapper
 * @createDate 2025-01-13 22:54:29
 * @Entity cn.achao.csr.api.model.entity.SysUserExpand
 */
public interface SysUserExpandMapper extends BaseMapper<SysUserExpand> {

    @Select("select count(1) from sys_user_expand where zfb_id = #{openId}")
    Integer isExistZfbOpenId(String openId);

    @Select("select count(1) from sys_user_expand where wx_id = #{openId}")
    Integer isExistWxOpenId(String openId);

}




